home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4517 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: newton.emba.uvm.edu!ertle
  2. From: ertle@newton.emba.uvm.edu (Jim Ertle)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Writing a program that can communicate with other programs on the Internet
  5. Date: 2 Feb 1996 21:32:32 GMT
  6. Organization: University of Vermont, Burlington
  7. Message-ID: <4etvtg$7oj@swen.emba.uvm.edu>
  8. References: <4eooin$92g@daily-planet.execpc.com>
  9. NNTP-Posting-Host: newton.emba.uvm.edu
  10.  
  11. In article <4eooin$92g@daily-planet.execpc.com>,
  12. bitsafe <bitsafe@execpc.com> wrote:
  13. >
  14. >Questions:
  15. >
  16. >    What PC languages can provide socket calls?
  17. >        (preferably C or Visual Basic)
  18. >    Can a program listen for calls on two ports at the same time?
  19. >    Can a program listen on a port and accept keyboard input
  20. >simultaneously?
  21. >
  22.  
  23.    I haven't dealt with PC sockets much, so I'm not sure of the answer
  24. to the first.  But, if they are anything like the ones on Unix
  25. machines, Then the answer to question #2 and #3 is yes.  You should
  26. look at the "select()" call, which allows you to check for incoming
  27. data on more than one file id.
  28.  
  29.  
  30. -- 
  31. James A. Ertle                       |Bureaucracies are the epoxy which 
  32. ertle@emba.uvm.edu                   |lubricate the wheels of Government.
  33. UVM's EMBA Computer Facility         |            - Count Zero
  34. Burlington, Vt. USA                  |
  35.